home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 13422 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: FreeNet.Carleton.CA!ah956
  2. From: ah956@FreeNet.Carleton.CA (Susheel Jalali)
  3. Newsgroups: comp.lang.c++
  4. Subject: g++2.7.0/Solaris: can't lookup method -incomplete type
  5. Date: 25 Mar 1996 17:57:40 GMT
  6. Organization: National Capital Freenet, Ottawa, Canada
  7. Sender: ah956@freenet2.carleton.ca (Susheel Jalali)
  8. Message-ID: <4j6mqk$kb@freenet-news.carleton.ca>
  9. NNTP-Posting-Host: freenet2.carleton.ca
  10.  
  11.  
  12.  
  13. Hi All,
  14.  
  15. I am puzzled by a couple of messages from my g++ 2.7.0 compiler
  16. on Sun Solaris system.
  17.  
  18. I am calling a member function of an already compiled
  19. class Machine, but when I compile the calling class I get an
  20. error:
  21.  
  22. // First to show that the class Machine was successfully compiled:
  23. // Then  how/why does 'Machine' become an incomplete type when
  24. // class Network is being compiled?
  25.  
  26. Compiling Machine.o
  27. In file included from Machine.h:27,
  28.                  from Machine.cc:11:
  29. Network.h:29: warning: template `Queue<MessageCarrier *>::Queue()' instantiated
  30. in file without #pragma interface
  31.  
  32. Compiling Network.o
  33. In file included from Network.cc:7:
  34. Network.h:29: warning: template `Queue<MessageCarrier *>::Queue()' instantiated
  35. in file without #pragma interface
  36. Network.cc: In method `void Network::endOfService()':
  37. Network.cc:109: cannot lookup method in incomplete type `Machine'
  38.  
  39.  
  40. I would like to know the meaning of the two errors:
  41.  
  42. Network.h:29: warning: template
  43. `Queue<MessageCarrier *>::Queue()' instantiated
  44. in file without #pragma interface
  45. Compiling MachineShop.o
  46.  
  47. and,
  48.  
  49. cannot lookup method in incomplete type `Machine'
  50.  
  51. Please e-mail me as well, if you decide to post the reply into the
  52. newsgroup.
  53.  
  54. Thanks for any help you can provide,
  55.  
  56. Susheel
  57.  
  58.